package malohlava.apps.mendeley.scribe.builder.api;

import org.scribe.model.Verb;
import org.scribe.builder.api.DefaultApi10a;
import org.scribe.extractors.RequestTokenExtractor;
import org.scribe.extractors.AccessTokenExtractor;
import malohlava.apps.mendeley.scribe.extractors.ImprovedTokenExtractorImpl;

/**
 *
 * @author Michal Malohlava
 */
public class MendeleyApi extends DefaultApi10a {
/*
    @Override
    protected AccessTokenExtractor getAccessTokenExtractor()
    {
        return new ImprovedTokenExtractorImpl();
    }
*/
    @Override
    protected RequestTokenExtractor getRequestTokenExtractor()
    {
        return new ImprovedTokenExtractorImpl();
    }
 
    @Override
    protected Verb getRequestTokenVerb()
    {
        return Verb.GET;
    }

    @Override
    public String getRequestTokenEndpoint()
    {
          return "http://www.mendeley.com/oauth/request_token/";
    }
    
    @Override
    protected Verb getAccessTokenVerb()
    {
        return Verb.GET;
    }

    @Override
    public String getAccessTokenEndpoint()
    {
        return "http://www.mendeley.com/oauth/access_token/";
    }
}
